/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simulatefire.Building.RoomParts;

/**
 *
 * @author Nicolas
 * @version $Revision: 1.0 $
 */
public class RoomParts {
    int onFire;
    
    public RoomParts(){
        onFire = 0;
    }
    
    /*public char getRoomPartsSymbol(){
        return 'E';
    }*/
    
    /**
     * Method getRoomPartsSymbol.
     * @return char
     */
    public char getRoomPartsSymbol(){
        if(this.onFire == 0) return 'X';
        if(this.onFire <51) return 'f';
        return 'F';
    }
    
    public void setFire(){
        onFire = 100;
    }
    
    public void resetFire(){
        onFire = 0;
    }
    
    /**
     * Method getOnFire.
     * @return int
     */
    public int getOnFire(){
        return onFire; 
    }
    
    /**
     * Method setFire.
     * @param i int
     */
    public void setFire(int i){
        onFire = onFire+i;
        if(onFire > 100) onFire = 100;
    }
}
